package cn.toolck.service;

import cn.toolck.pojo.LagouAuthCode;

import java.util.Optional;

public interface LagouAuthCodeService {
    String create(String email);

    Boolean send(String email, String code);

    Boolean createAndSend(String email);

    int validate(String email, String code);

    Optional<LagouAuthCode> isPresent(String email);
}
